package com.webmuseum.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Widget;

public class DecloneHandler implements ClickHandler {

	private UIMultiContainer mRemTable;
	private Widget mWidget;
	
	public DecloneHandler(UIMultiContainer aRemTable, Widget aWidget)
	{
		mRemTable = aRemTable;
		mWidget = aWidget;
	}
	
	@Override
	public void onClick(ClickEvent event) 
	{
		mRemTable.removeRemovableWidget(mWidget);
	}

}
